package com.zllkj.mm.module.main.fragments;

import android.view.View;

import com.zllkj.mm.R;
import com.zllkj.mm.base.BaseTitleFragment;


/**
 * Created by leon_ok.
 */

public class BlankFragment extends BaseTitleFragment {

    static boolean showTitle = false;

    public static BlankFragment newInstance() {
        showTitle = false;
        return new BlankFragment();
    }

    public static BlankFragment newInstance(int i) {
        showTitle = true;
        return new BlankFragment();
    }

    @Override
    protected int getContentLayoutId() {
        return R.layout.fragment_blank;
    }

    @Override
    protected void initView(View rootView) {
        super.initView(rootView);
        if (showTitle) {
            setCommonTitle("暂无内容");
        } else {
            hideTitle();
        }
    }

}

